package cn.lg.soar.flow.biz.entity;

import cn.lg.soar.flow.api.enums.AuditTypeEnum;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;


/**
 * 审批记录
 * @author luguoxiang
 * @since 2025-08-07
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Data
@Schema(description = "审批记录")
@TableName("lg_flow_audit_log")
public class SoarAuditLog {

    /** 任务id */
    @TableId(type = IdType.INPUT)
    @ExcelProperty(value = "任务id")
    @Schema(description = "任务id")
    private String taskId;

    /** 审批人id */
    @ExcelProperty(value = "审批人id")
    @Schema(description = "审批人id")
    private Long userId;

    /** 审批类型（字典：AuditTypeEnum */
    @ExcelProperty(value = "审批类型")
    @Schema(description = "审批类型（字典：AuditTypeEnum）")
    private AuditTypeEnum result;

    /** 审批意见 */
    @ExcelProperty(value = "审批意见")
    @Schema(description = "审批意见")
    private String comments;

}
